import {
    h
} from 'vue' ;

export default ({
    dialog,
    apply,
    cancel,
    params,
    ...props
}) => {

    if(dialog){

        return h(dialog({
            ...props,
            onApply:(_ , params) => apply(params),
            onCancel:() => cancel()
        } , params)) ;
    }
}
